package design._05_Adapter.class01;

public class Adapter implements Target,Adaptee {
	//同时维持对抽象目标类和适配者的引用
	private Target target;
	private Adaptee adaptee;
	@Override
	public void moving() {	
		adaptee.moving();
	}

	@Override
	public void say() {
		target.say();
	}

	@Override
	public void moving2() {
		adaptee.moving2();
		
	}

	@Override
	public void moving3() {
		adaptee.moving3();
		
	}

}
